package com.example.schoolmanage.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.schoolmanage.domain.PageResult;
import com.example.schoolmanage.domain.Student;
import com.example.schoolmanage.domain.StudentAdd;

import java.util.List;

/**
* @author ayuan
* @description 针对表【STUDENT】的数据库操作Service
* @createDate 2023-01-31 14:42:18
*/
public interface StudentService extends IService<Student> {
    public Student selectOneByStuId(Integer id);

    public Student getStuCousbyStuId(Integer id);

    public Student getStubyStuId(Integer sId);

    public boolean addStudent(Student student);
    public boolean addStudent2(StudentAdd student);


    public List<Student> getallbypage(Integer pagenum, Integer pagesize);

    public PageResult<Student> getallVpage(Integer pagenum, Integer pagesize);

    public List<Student> getStuCouspage(Integer pagenum, Integer pagesize);

}
